package cn.pn.project.pojo.order;

import java.io.Serializable;
import java.util.Date;

/**
 * 订单表
 */
public class Order implements Serializable {

    /**
     * 主键Id
     */
    private Integer mainOrderId;
    /**
     * 订单编号
     */
    private String orderNum;
    /**
     * 用户Id
     */
    private Integer userId;
    /**
     * SKU
     */
    private Integer skuId;
    /**
     * 地址Id
     */
    private Integer addressId;
    /**
     * 商品数量
     */
    private Integer count;
    /**
     * 下单时间
     */
    private Date orderTime;
    /**
     * 订单状态(0待支付 1待出票 2待收货 3已完成 4已取消 5已退款)
     */
    private Integer status;
    /**
     * 支付时间
     */
    private Date payTime;
    /**
     * 支付类型(1:微信支付 2：支付宝支付)
     */
    private Integer payType;
    /**
     * 支付交易号
     */
    private String tradeNo;
    /**
     * 配送方式(0快递 1现场自取 2门店自取 3电子票)
     */
    private Integer deliverType;
    /**
     * 总价格
     */
    private Double totalPrice;
    /**
     * 邮费(全国统一收费10元，金额计算入到totalPrice里)
     */
    private Double postage;
    /**
     * 物流号码
     */
    private String logisticsNum;

    /**
     * 是否已删除（0:已删除 1:未删除
     */
    private Integer isDelete;

    /**
     * 取票人
     */
    private String ticketDrawer;

    /**
     * 取票人电话
     */
    private String contactNumber;

    /**
     * 取消原因
     */
    private String cancelCause;

    /**
     * 备注
     */
    private String remarks;

    /**
     * 取消时间
     */
    private Date cancelCauseTime;

    /**
     * 预留列
     */
    private String more1;

    /**
     * 预留列
     */
    private String more2;

    /**
     * 预留列
     */
    private String more3;

    public Date getCancelCauseTime() {
        return cancelCauseTime;
    }

    public void setCancelCauseTime(Date cancelCauseTime) {
        this.cancelCauseTime = cancelCauseTime;
    }

    public Integer getMainOrderId() {
        return mainOrderId;
    }

    public void setMainOrderId(Integer mainOrderId) {
        this.mainOrderId = mainOrderId;
    }

    public String getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(String orderNum) {
        this.orderNum = orderNum;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getSkuId() {
        return skuId;
    }

    public void setSkuId(Integer skuId) {
        this.skuId = skuId;
    }

    public Integer getAddressId() {
        return addressId;
    }

    public void setAddressId(Integer addressId) {
        this.addressId = addressId;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public Date getOrderTime() {
        return orderTime;
    }

    public void setOrderTime(Date orderTime) {
        this.orderTime = orderTime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getPayTime() {
        return payTime;
    }

    public void setPayTime(Date payTime) {
        this.payTime = payTime;
    }

    public Integer getPayType() {
        return payType;
    }

    public void setPayType(Integer payType) {
        this.payType = payType;
    }

    public String getTradeNo() {
        return tradeNo;
    }

    public void setTradeNo(String tradeNo) {
        this.tradeNo = tradeNo;
    }

    public Integer getDeliverType() {
        return deliverType;
    }

    public void setDeliverType(Integer deliverType) {
        this.deliverType = deliverType;
    }

    public Double getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(Double totalPrice) {
        this.totalPrice = totalPrice;
    }

    public Double getPostage() {
        return postage;
    }

    public void setPostage(Double postage) {
        this.postage = postage;
    }

    public String getLogisticsNum() {
        return logisticsNum;
    }

    public void setLogisticsNum(String logisticsNum) {
        this.logisticsNum = logisticsNum;
    }

    public Integer getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(Integer isDelete) {
        this.isDelete = isDelete;
    }

    public String getTicketDrawer() {
        return ticketDrawer;
    }

    public void setTicketDrawer(String ticketDrawer) {
        this.ticketDrawer = ticketDrawer;
    }

    public String getContactNumber() {
        return contactNumber;
    }

    public void setContactNumber(String contactNumber) {
        this.contactNumber = contactNumber;
    }

    public String getCancelCause() {
        return cancelCause;
    }

    public void setCancelCause(String cancelCause) {
        this.cancelCause = cancelCause;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    public String getMore1() {
        return more1;
    }

    public void setMore1(String more1) {
        this.more1 = more1;
    }

    public String getMore2() {
        return more2;
    }

    public void setMore2(String more2) {
        this.more2 = more2;
    }

    public String getMore3() {
        return more3;
    }

    public void setMore3(String more3) {
        this.more3 = more3;
    }


    @Override
    public String toString() {
        return "Order{" +
                "mainOrderId=" + mainOrderId +
                ", orderNum='" + orderNum + '\'' +
                ", userId=" + userId +
                ", skuId=" + skuId +
                ", addressId=" + addressId +
                ", count=" + count +
                ", orderTime=" + orderTime +
                ", status=" + status +
                ", payTime=" + payTime +
                ", payType=" + payType +
                ", tradeNo='" + tradeNo + '\'' +
                ", deliverType=" + deliverType +
                ", totalPrice=" + totalPrice +
                ", postage=" + postage +
                ", logisticsNum='" + logisticsNum + '\'' +
                ", isDelete=" + isDelete +
                ", ticketDrawer='" + ticketDrawer + '\'' +
                ", contactNumber='" + contactNumber + '\'' +
                ", cancelCause='" + cancelCause + '\'' +
                ", remarks='" + remarks + '\'' +
                ", cancelCauseTime=" + cancelCauseTime +
                ", more1='" + more1 + '\'' +
                ", more2='" + more2 + '\'' +
                ", more3='" + more3 + '\'' +
                '}';
    }
}
